#!/user/bin/env python3
# -*- coding: utf-8 -*-
"""
--------------------------------------
    Author:     JiChao_Song
    Date  :     2020/11/18 8:55
    Desc  :
--------------------------------------
"""
from utils.fakerUtils import *

# 基础url
BASE_URL = "http://testapi.mondoq.cn"

# token
ACCESSTOKEN = ''

# 全局请求头
HEADERS = {
    "Authorization": 'Bearer {}'
}

# excel列表结果
EXCEL_INFO = {
    'index': 0,         # 第一位为序号
    'apiName': 1,       # 接口名称
    'apiPath': 2,       # 接口地址
    'apiMehtod': 3,     # 请求方法
    'apiParam': 4,      # 接口参数
    'extract': 5,       # 提取参数
    'assertPatam': 6,   # 断言字段
    'assertValue': 7,   # 断言值
    'isRun': 8,         # 是否执行
    'isHeaders': 9,      # 是否带请求头
}


# 用来存提取的变量的
EXTRACT_VARIABLE = {
    "random_name": random_name(),
    "random_address": random_address(),
    "random_user_name": random_user_name(),
    "random_article": random_article(),
    "random_country": random_country(),
    "random_email": random_email(),
    "random_id_card": random_id_card(),
    "random_job": random_job(),
    "random_paragraph": random_paragraph(),
    "random_phone": random_phone(),
    "random_sentence": random_sentence(),
    "random_postcode": random_postcode(),
    "random_word": random_word(),
    "random_user_agent": random_user_agent(),
    "random_company": random_company(),
}

# 用户状态
CASE_STATUS = {
    100: "PASS",
    101: "FAIL",
    102: "ERROR",
}